:root{
    --Color-Rojo:#ed1c27;
    --Color-Rojo-Oscuro:#c2161f;
    --Color-Blanco: #ffffff;
    --Color-Fondo: #f4f4f4;
    --Color-Negro:#2d2d2d;
    --Color-Footer:#eaeaea;
}

/* Reset */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    color: var(--Color-Negro);
    scroll-behavior: smooth;
    font-family: 'davregular', sans-serif;
}

body{
    background-color: var(--Color-Fondo);
}
.red{
    color: var(--Color-Rojo);
}

/* ----------------------- */
/* ------- LEGALES ------- */
/* ----------------------- */

.lemotive{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 7%;
    z-index: 150;
}
.legal{
    position: fixed;
    top: 100px;
    right: 20px;
    width: 15px;
    z-index: 150;
}
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--Color-Negro);
    font-weight: 400;
}

.botonVolver {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--Color-Blanco);
    font-size: 1.5rem;
    border: 3px solid var(--Color-Footer);
    padding: 10px 15px;
    border-radius: 100px;
    cursor: pointer;
    display: none; /* Oculto por defecto */
    z-index: 150;
}
.botonVolver i{
    color: #6f6f6f;
}

.logonav {
    display: none;
}

.navbar {
    position: fixed;
    top: 3%;
    right: 3%;
    width: 50%;
    max-width: 600px;
    z-index: 10;
    border-radius: 50px;
    padding-bottom: 0;
    padding-top: 0;
    background-color: var(--Color-Blanco);
}
.navbar .navbar-toggler {
    text-align: center;
    margin: auto;
}
.navbar .navbar-toggler::before {
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.navbar .navbar-nav {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.navbar .navbar-nav a {
    font-family: 'davcondensedRegular', sans-serif;
    font-size: 13px;
    color: inherit;
}
.navbar .navbar-nav .nav-item {
    padding-right: 1rem;
    padding-left: 1rem;
}
.navbar .navbar-nav .nav-item.active {
    background: var(--Color-Rojo);
    border-radius: 50px;
    text-align: center;
}
.navbar .navbar-nav .nav-item.active a {
    color: var(--Color-Blanco);
}

/* ------------------------- */
/* ------- SECCION 1 ------- */
/* ------------------------- */

.seccion1{
    background-image: url(https://images.publicidad.davivienda.cr/EloquaImages/clients/DAVIVIENDACOSTARICA/%7B9508f66d-588b-41e3-b56d-2b3553afe645%7D_250403-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0px;
    min-height: 100vh;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.seccion1.reducir {
    opacity: 0; /* Opcional: para hacer que parezca desvanecerse */
    transition: opacity 0.5s ease-in-out;
}
.seccion1 .imagen{
    position: absolute;
    top:15%;
    left: 4%;
}
.seccion1 .imagen img{
    width: 75%;
}
.seccion1 .texto{
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.seccion1 .texto .breadcrumb{
    background-color: transparent;
    margin-bottom: 30px;
    font-size: 0.8rem;
}
.seccion1 .texto .breadcrumb a{
    color: #6f6f6f;
}
.seccion1 .texto .breadcrumb .active{
    color: var(--Color-Rojo);
}
.seccion1 .texto h1{
    font-family: 'davextrabold', sans-serif;
    color: var(--Color-Rojo);
    padding: 0px;
    margin: 0px;
    text-transform: uppercase;
    font-size: 3.8rem;
}
.seccion1 .texto h2{
    text-transform: uppercase;
    font-size: 2rem;
}
.seccion1 .texto h2 span{
    font-family: 'davbold_italic', sans-serif;
}
.seccion1 .texto h2 span{
    font-family: 'davbold_italic', sans-serif;
}
.seccion1 .texto p{
    margin-top: 80px;
    color: var(--Color-Rojo);
}
.seccion1 .texto p{
    margin: 80px 0px 20px 0px;
    color: var(--Color-Rojo);
}
.seccion1 .texto .flecha{
    display: flex;
    justify-content: center;
}
.seccion1 .texto .flecha a{
    cursor: pointer;
    animation: subirBajar 1.5s infinite ease-in-out;
}
.seccion1 .texto .flecha a img{
    width: 50%;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.3));
}
@keyframes subirBajar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}


.seccion2{
    background-image: url(https://images.publicidad.davivienda.cr/EloquaImages/clients/DAVIVIENDACOSTARICA/%7B9508f66d-588b-41e3-b56d-2b3553afe645%7D_250403-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: auto;
    position: relative;
    margin-top: 100vh; /* Empieza justo después de .seccion1 */
    display: flex;
    align-items: center;
}
.seccion2 .cuadro{
    background-color: var(--Color-Fondo);
    border: 5px solid var(--Color-Blanco);
    padding: 30px 10px 50px 10px;
    border-radius: 20px;
    position: relative;
    margin-bottom: 30px;
}
.seccion2 .cuadro h3 span{
    font-family: 'davextrabold', sans-serif;
    text-transform: uppercase;
}
.seccion2 .cuadro .cuadroRojo{
    font-family: 'davextrabold', sans-serif;
    text-transform: uppercase;
    color: var(--Color-Blanco);
    font-size: 1.7rem;
    padding: 10px 30px;
    border-radius: 10px;
    background-color: var(--Color-Rojo);
    margin-bottom: -80px;
    position: absolute;
    bottom: 30%;
}
.seccion2 .iconoFlecha{
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.seccion2 .iconoFlecha i{
    color: var(--Color-Rojo);
    font-size: 1.8rem;
}
.seccion2 p {
    font-size: 1.3rem;
}
.seccion2 p b{
    font-family: 'davextrabold', sans-serif;
}

.divisor {
    position: absolute;  /* Lo saca del flujo normal */
    bottom: 0px; /* Ajusta la posición para que se superponga */
    left: 0;
    width: 100%;
    z-index: 3; /* Asegura que esté por encima de la sección 2 */
}

.seccion3{
    background-color: var(--Color-Blanco);
}
.seccion3 .btnDescarga{
    display: flex;
    justify-content: center;
    margin: 20px 0px 30px 0px;
}
.seccion3 .btnDescarga a{
    background-color: var(--Color-Rojo);
    padding: 10px 50px;
    color: var(--Color-Blanco);
    font-size: 30px;
    font-family: 'davextrabold', sans-serif;
    border-radius: 30px;
    transition: transform 0.5s ease-in-out,
}
.seccion3 .btnDescarga a:hover{
    background-color: var(--Color-Rojo-Oscuro);
    transform: scale(1.1,1.1);
    text-decoration: none;
}
.seccion3 .terminos p{
    color: #6f6f6f;
    margin: 20px 0px 40px 0px;
}
.seccion3 .terminos p a{
    color: #6f6f6f;
}

footer{
    position: relative;
    background-color: var(--Color-Footer);
    padding: 30px 0px;
    text-align: center;
    z-index: 180;
}




@media (max-width: 768px) { 
    .lemotive{
        position: fixed;
        top: 0px;
        left: 0px;
        width: 10%;
        z-index: 150;
    }

    .navbar {
    width: 100%;
    background: transparent;
    }
    .navbar .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar .navbar-toggler {
        margin: inherit;
        margin-left: 90% !important;
        background: var(--Color-Blanco);
        color: var(--Color-Rojo);
    }
    #navbarNav {
        position: absolute;
        top: -28px;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: 340px;
        padding-left: 40px;
        left: 0;
        background: var(--Color-Rojo);
        color: var(--Color-Blanco);
    }
    #navbarNav .logonav {
        display: block;
        margin-top: 3rem;
        max-width: 80px;
        margin-bottom: 1rem;
    }
    #navbarNav .logonav img {
        display: block;
        width: 100%;
    }
    #navbarNav .navbar-nav {
        max-width: 100%;
    }
    #navbarNav .navbar-nav .nav-item {
        border-bottom: 1px solid #D40C14;
    }
    #navbarNav .navbar-nav .nav-item.active {
        border-bottom: 0;
        text-align: left;
        background-color: #D40C14;
        border-radius: 0;
    }

    
    .seccion1{
        padding-top: 15%;
        min-height: 90vh;
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }
    .seccion1 .imagen{
        display: none;
    }
    .seccion1 .texto p{
        margin: 30px 0px 20px 0px;
    }
    .seccion1 .texto .flecha{
        margin-bottom: 30px;
    }


    .seccion2{
        padding-top: 13%;
        min-height: auto;
        margin-top: 100vh;
    }
    .seccion2 .cuadro{
        text-align: center;
    }
    .seccion2 .cuadro .cuadroRojo{
        margin-bottom: -80px;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
    }
    .seccion2 p {
        text-align: center;
    }
}

@media (max-width: 560px) { 
    .lemotive{
        position: fixed;
        top: 0px;
        left: 0px;
        width: 15%;
        z-index: 150;
    }
    .seccion1{
        padding-top: 13%;
        min-height: 100vh;
    }
    .seccion1 .texto h1{
        font-size: 2.3rem;
    }
    .seccion1 .texto h2{
        font-size: 1.5rem;
    }
    .seccion1 .texto p{
        margin: 50px 0px 20px 0px;
    }
    .seccion1 .texto .flecha{
        margin-bottom: 80px;
    }


    .seccion2{
        padding-top: 13%;
        min-height: auto;
        margin-top: 100vh;
    }
    .seccion2 .cuadro{
        text-align: center;
    }
    .seccion2 .cuadro h3{
        font-size: 1.3rem;
    }
    .seccion2 .cuadro .cuadroRojo{
        font-size: 1rem;
        margin-bottom: -80px;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
    }
    .seccion2 p {
        text-align: center;
        font-size: 1.3rem;
    }
    .divisor {
        bottom: -10px;
    }


    .seccion3 .btnDescarga a{
        font-size: 20px;
    }

    .seccion3 .terminos p{
        font-size: 1rem;
        text-align: center;
    }

    footer p{
        font-size: 0.8rem;
    }
}